﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Devdream.Models
{

    /// <summary>
    /// 用户组
    /// </summary>
   public class UserGroup
    {
        [Key]
        public int GroupID { get; set; }
        [Required(ErrorMessage="必填")]
        [StringLength(20,MinimumLength=2,ErrorMessage="{1}到{0}个字符串")]
        [Display(Name="名称")]
        public string Name { get; set; }
        /// <summary>
        /// 0普通用户1特权用户3管理型用户
        /// </summary>
        [Required(ErrorMessage="必填")]
        [Display(Name="用户组类型")]
        public int GroupType { get; set; }
        [Required(ErrorMessage="必填")]
        [StringLength(50,ErrorMessage="少于{0}个字符")]
        [Display(Name="说明")]
        public string Description { get; set; }
    }
}
